package com.kldy8.kldyw.model;

import org.json.JSONObject;

/**
 * Created by user on 2016/12/14.
 */

public class WebViewJavascriptBridgeDataOrder
{
    public String event;
    public String url;
    public String name;
    public String password;
    public String title;
    public String images;
    public String description;
    public int level;


    public static WebViewJavascriptBridgeDataOrder resolution(JSONObject jsonObject)
    {
        if (jsonObject == null)
        {
            return  null;
        }

        WebViewJavascriptBridgeDataOrder m_new = new WebViewJavascriptBridgeDataOrder();
        m_new.event = jsonObject.optString("event");
        m_new.url = jsonObject.optString("url");
        m_new.name = jsonObject.optString("name");
        m_new.password = jsonObject.optString("password");
        m_new.title = jsonObject.optString("title");
        m_new.images = jsonObject.optString("images");
        m_new.description = jsonObject.optString("description");
        m_new.level = jsonObject.optInt("level");

        return m_new;
    }

}
